import apiClient from '../utils/axiosConfig'

export const invoiceApi = {
  // 获取未开票数据
  getUnInvoicedData() {
    return apiClient({
      method: 'get',
      url: '/invoice/queryMetalElecUninvoicedData'
    })
  },
  
  // 提交开票
  submitInvoice(data) {
    return apiClient({
      method: 'post',
      url: '/invoice/writeMetalElecReceipt',
      data
    })
  }
}
